/**
* @Title: SysAuthorizingRealmDaoImpl.java
* @Package com.yly.module.sys.security.realm
* @Description: TODO
* @author zz
* @date 2014-3-2 下午4:31:41
* @version V1.0
*/
package com.yly.module.sys.security.realm;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.yly.common.basic.dao.BasicSupportDao;

/**
 * @ClassName: SysAuthorizingRealmDaoImpl
 * @Description: TODO
 * @author zz
 * @date 2014-3-2 下午4:31:41
 */
@Service
public class SysAuthorizingRealmDaoImpl extends BasicSupportDao implements ISysAuthorizingRealmDao{

	/* (非 Javadoc)
	* <p>Title: getUserInfo</p>
	* <p>Description: </p>
	* @param param
	* @return
	* @see com.yly.module.sys.security.ISysAuthorizingRealmService#getUserInfo(java.util.Map)
	*/
	@Override
	public Map getUserInfo(Map param) {
		Map test = new HashMap();
		test.put("user_code", "admin");
		test.put("password", "1");
		return test;
	}

	/* (非 Javadoc)
	* <p>Title: getUserRoleInfo</p>
	* <p>Description: </p>
	* @param param
	* @return
	* @see com.yly.module.sys.security.ISysAuthorizingRealmService#getUserRoleInfo(java.util.Map)
	*/
	@Override
	public Map getUserRoleInfo(Map param) {
		Map test = new HashMap();
		List<String> list = new ArrayList<String>();
		list.add("1");
		list.add("2");
		list.add("3");
		test.put("role", list);
		
		return test;
	}

}
